﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FPC.Offer.Service
{
    public class System_RoleRightService : BaseService<IRepository.ISystem_RoleRightRepository, Model.System_RoleRight>
    {
        /// <summary>
        /// 删除角色权限
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public dynamic Role_PowerDelete(int id)
        {
            return base.dal.Role_PowerDelete(id);
        }
        /// <summary>
        /// 角色权限修改
        /// </summary>
        /// <param name="Roleid"></param>
        /// <param name="Powerid"></param>
        /// <returns></returns>
        public dynamic RoleBatchUpdate(int Roleid, string Powerid)
        {
            return base.dal.RoleBatchUpdate(Roleid, Powerid);
        }
         /// <summary>
        /// 测试是否有该权限
        /// </summary>
        /// <param name="Roleid"></param>
        /// <param name="Url"></param>
        /// <returns></returns>
        public dynamic GetIsRoleRight(string Roleid, string Url, ref int Modid)
        {
            return base.dal.GetIsRoleRight(Roleid, Url,ref Modid);         
        }
        /// <summary>
        /// 测试是否有该权限
        /// </summary>
        /// <param name="Roleid"></param> 
        /// <param name="Url"></param>
        /// <returns></returns>
        public dynamic GetIsRoleRight(string RoleID, int MenuID)
        {
            return base.dal.GetIsRoleRight(RoleID, MenuID);
        }
    }
}
